#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int N = 200010;
int a[N];
int n, t;
void add(int l, int r)
{
    a[l] += 1;
    a[r + 1] -= 1;
}
int main()
{
    cin >> t;
    while (t--)
    {
        int x;
        cin >> n;
        for (int i = 1; i <= n; i++)
        {
            cin >> x;
            int l = max(1, i - x + 1);
            add(l, i);
        }
        int s = 0;
        for (int i = 1; i <= n; i++)
        {
            s += a[i];
            a[i] = 0;
            if (s > 0) cout << 1 << " ";
            else cout << 0 << " ";
        }
        a[n + 1] = 0;
        cout << endl;
    }
}